﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HCQ2_Model.Data;
using HCQ2_Model.Pay;
using HCQ2_Model.ViewModel;

namespace HCQ2_IBLL
{
    /// <summary>
    /// 新购物车
    /// </summary>
    public partial interface IN_ShoppingBLL
    {
        /// <summary>
        /// 添加进购物车
        /// </summary>
        /// <param name="shoppingAddParams">参数</param>
        /// <returns></returns>
        OperationResult ShoppingAdd(ShoppingAddParams shoppingAddParams);

        /// <summary>
        /// 获取购物车列表
        /// </summary>
        /// <param name="shoppingListParams"></param>
        /// <returns></returns>
        OperationResult<TableModel<List<ShoppingList>>> ShoppingList(ShoppingListParams shoppingListParams);

        /// <summary>
        /// 更新购物车列表
        /// </summary>
        /// <param name="shoppingUpdateParams"></param>
        /// <returns></returns>
        OperationResult UpdateShopping(ShoppingUpdateParams shoppingUpdateParams);

        /// <summary>
        /// 删除购物车中商品
        /// </summary>
        /// <param name="param">购物车ID</param>
        /// <returns></returns>
        OperationResult DeleteShopping(ShoppingDeleteParams param);
    }
}
